//
//  ProductItemInfo.m
//  JiaoX
//
//  Created by jiaoxiu－004 on 14/11/12.
//  Copyright (c) 2014年 北京娇羞科技有限公司. All rights reserved.
//

#import "ProductItemInfo.h"

@implementation ProductItemInfo

-(NSString *)prodDiscount{
    double discount = [_prodNewPrice doubleValue]/[_prodOldPrice doubleValue]*10;
    NSString *disCountStr = [NSString stringWithFormat:@"%.1f",discount];
    return [NSString stringWithFormat:@"%@折",disCountStr];
}

-(NSString *)prodNewPrice{
    NSString *result =[NSString stringWithFormat:@"￥%@",_prodNewPrice];
    return result;
}

-(NSString *)prodOldPrice{
    return [NSString stringWithFormat:@"￥%@",_prodOldPrice];
}

-(NSString *)prodDiscussCount{
    return [NSString stringWithFormat:@"%@人讨论了这货",_prodDiscussCount];
}
-(NSString *)prodBuyCount{
    return [NSString stringWithFormat:@"月销%@",_prodBuyCount];
}

@end
